package com.sikaryofficial.backend.domain.mapping;

import com.sikaryofficial.backend.domain.dto.resp.EvaluateReplyDTO;
import com.sikaryofficial.backend.domain.entity.BrandTasteEvaluateReply;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author : qinjinyuan
 * @desc : 评价回复实体映射
 * @date : 2023/11/03 10:54
 */
@Mapper
public interface EvaluateReplyMapping {

    EvaluateReplyMapping INSTANCE = Mappers.getMapper(EvaluateReplyMapping.class);

    /**
     * 实体映射resp
     *
     * @param evaluateReply
     * @return
     */
    EvaluateReplyDTO coverToDTO(BrandTasteEvaluateReply evaluateReply);

    /**
     * 实体集合映射resp
     *
     * @param evaluateReplyList
     * @return
     */
    List<EvaluateReplyDTO> coverListToDTO(List<BrandTasteEvaluateReply> evaluateReplyList);
}
